import 'package:flutter/material.dart';

class DemoText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Text deom'),
      ),
      body: const Text(
        '文字应该会换行的地方换行 这是一个单词应该会换行的asdfasdfasdfasdcesaeefefefadfasdfasdf',
        softWrap: true,
        maxLines: 2,
        // overflow: TextOverflow.fade,
        style: TextStyle(
          fontSize: 20,
          fontWeight: FontWeight.bold
        ),
        // textDirection:TextDirection.rtl,
        // textScaleFactor: 0.5,
      )
    );
  }
}
